package com.ruoyi.operation.order.enter.service;

import com.ruoyi.operation.order.enter.domain.EnterForm;
import com.ruoyi.operation.order.total.domain.Total;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author king
 * @create 2019/4/12 14:36
 */
public interface IEnterFormService {
    /**
     * 录入订单信息
     * @param enterForm
     * @return
     */
    int saveEnterForm(EnterForm enterForm);

    /**
     * 验证订单编号是否存在
     * @return
     */
    String allFormNum(String formNum);

    /**
     * 查询所有的订单信息
     * @param enterForm
     * @return
     */
    List<EnterForm> allEnterFormList(EnterForm enterForm);

    /**
     * 根据id获取对应的对象
     * @param id
     * @return
     */
    EnterForm getEnterFormById(String id);

    /**
     * 编辑订单信息
     * @param enterForm
     * @return
     */
    int editEnterForm(EnterForm enterForm);

    /**
     * 删除订单信息
     * @param id
     * @return
     */
    int delEnterForm(String id);

    /**
     * 批量审核订单信息
     * @param ids
     * @return
     */
    int checkAllEnterForm(String ids) throws Exception;

    /**
     * 根据旺旺号查询所有的订单信息
     * @param wwNum
     * @return
     */
    List<EnterForm> allListEnter(String wwNum);

    /**
     * 导入数据
     * @param enterFormList
     * @param isUpdateSupport
     * @return
     */
    public String importEnterForm(List<EnterForm> enterFormList ,Boolean isUpdateSupport );

    /**
     * 查询旺旺号和微信号
     * @param enterForm
     * @return
     */
    List<EnterForm> selectByWWechat(EnterForm enterForm);

    /**
     * 导出
     * @param enterForm
     * @return
     */
    void exportTotal(EnterForm enterForm, HttpServletRequest request, HttpServletResponse response) throws  Exception;

    /**
     * 批量删除录入的数据
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     * @throws Exception 异常
     */
     int batchDeleteIds(String ids) throws Exception;
}

